package com.bosssoft.boss_exam_db.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * Table: applicant_exam
 */
@Data
public class ApplicantExam implements Serializable {
    /**
     * 考试唯一标识字段
     *
     * Table:     applicant_exam
     * Column:    id
     * Nullable:  false
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private String id;

    /**
     * 应聘人ID
     *
     * Table:     applicant_exam
     * Column:    applicant_id
     * Nullable:  true
     */
    @Column(name = "applicant_id")
    private String applicantId;


    /**
     * 考试ID
     *
     * Table:     applicant_exam
     * Column:    exam_id
     * Nullable:  true
     */
    @Column(name = "exam_id")
    private String examId;



    /**
     * 参与考试时间
     *
     * Table:     applicant_exam
     * Column:    attendTime
     * Nullable:  true
     */
    @Column(name = "attend_time")
    private Date attendTime;


    /**
     * 参与考试时间
     *
     * Table:     applicant_exam
     * Column:    allow_exam
     * Nullable:  false
     */
    @Column(name = "allow_exam")
    private Integer allowExam;


    /**
     * 创建时间记录字段
     *
     * Table:     exam
     * Column:    add_time
     * Nullable:  true
     */
    @Column(name = "add_time")
    private Date addTime;

    /**
     * 添加人ID
     *
     * Table:     exam
     * Column:    add_people_id
     * Nullable:  true
     */
    @Column(name = "add_people_id")
    private String addPeopleId;

    /**
     * 添加人类型
     *
     * Table:     exam
     * Column:    add_people_type
     * Nullable:  true
     */
    @Column(name = "add_people_type")
    private Integer addPeopleType;

    /**
     * 修改人ID
     *
     * Table:     exam
     * Column:    update_people_id
     * Nullable:  true
     */
    @Column(name = "update_people_id")
    private String updatePeopleId;

    /**
     * 最后一次修改时间
     *
     * Table:     exam
     * Column:    update_time
     * Nullable:  true
     */
    @Column(name = "update_time")
    private Date updateTime;

    /**
     * 逻辑删除字段
     *
     * Table:     exam
     * Column:    deleted
     * Nullable:  true
     */
    private Boolean deleted;

    /**
     * 乐观锁版本字段
     *
     * Table:     exam
     * Column:    version
     * Nullable:  true
     */
    private Integer version;


    private static final long serialVersionUID = 1L;
}